﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Yunzuan.Foundation.Attributes;
using Yunzuan.Foundation.Entities;

namespace CloudDiamonds.Models.DBModels
{
    [Table(TableName = "index_product", PrimaryKey = "ID")]
    public class Index_Product : BaseEntity
    {
        public Index_Product()
        { }
        #region Model
        private int _id;
        /// <summary>
        ///
        /// </summary>
        [Column(IsAutoIncrement = true)]
        public int ID
        {
            get { return _id; }
            set { this.ChangeNotify<int>("ID", value, ref _id); }
        }
        private string _name;
        /// <summary>
        ///产品中文名
        /// </summary>
        public string Name
        {
            get { return _name; }
            set { this.ChangeNotify<string>("Name", value, ref _name); }
        }
        private string _tag;
        /// <summary>
        ///对应web.config里面的产品约定英文代称
        /// </summary>
        public string Tag
        {
            get { return _tag; }
            set { this.ChangeNotify<string>("Tag", value, ref _tag); }
        }
        private string _smallimg;
        /// <summary>
        ///首页缩略图
        /// </summary>
        public string SmallImg
        {
            get { return _smallimg; }
            set { this.ChangeNotify<string>("SmallImg", value, ref _smallimg); }
        }
        private string _imgurl;
        /// <summary>
        ///内容页面图
        /// </summary>
        public string ImgUrl
        {
            get { return _imgurl; }
            set { this.ChangeNotify<string>("ImgUrl", value, ref _imgurl); }
        }
        private string _content;
        /// <summary>
        ///内容，可html
        /// </summary>
        public string Content
        {
            get { return _content; }
            set { this.ChangeNotify<string>("Content", value, ref _content); }
        }
        private DateTime _addtime ;
        /// <summary>
        ///创建时间
        /// </summary>
        public DateTime AddTime
        {
            get { return _addtime; }
            set { this.ChangeNotify<DateTime>("AddTime", value, ref _addtime); }
        }
        #endregion
    }
}
